#include <head.h>

typedef struct
{
    int fd_in;
    int fd_out;
    off_t offset;
}ThreadData;
void * func(void *arg)
{
    printf("hello world\n");
    return NULL;
}
int main(int argc, char *argv[])
{
    pthread_t Tid =0;
    int thread_erron=0;
    if (0 < (thread_erron = pthread_create(&Tid ,NULL,func,NULL)))
    {
        printf("线程创建失败 错误码 %d 错误信息 %s\n" , thread_erron , strerror(thread_erron));
        exit(-1);
    }
    pthread_join(Tid , NULL);
    
}